<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<div class="layui-card-body" th:fragment="query">

    <!--每个zmn-form-item一行，每行4列
        支持页面自适应，1280分辨率下不折行
        -->
    <div class="zmn-form-item">
        <div class="item-inline">
            <label class="inline-label">业务类型：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="bizType" name="bizType" value="0" lay-search="">
                            <option value="0">-选择-</option>
                            <zmn th:each="bizType:${bizTypeList}">
                                <option th:title="${bizType.value}" th:value="${bizType.key}"  th:selected="${vo.bizType == bizType.key}" th:text="${bizType.value}"></option>
                            </zmn>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">跟单部门：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="trackDeptId" name="trackDeptId" value="0" lay-search="">
                            <option value="0">-选择-</option>
                            <zmn th:each="dept:${deptList}">
                                <option th:title="${dept.deptName}" th:value="${dept.deptId}"  th:selected="${vo.trackDeptId == dept.deptId}" th:text="${dept.deptName}"></option>
                            </zmn>
                        </select>
                    </div>
                </div>
            </div>
        </div>


        <div class="item-inline">
            <label class="inline-label">状态：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="status" name="status" value="0">
                            <option value="0" th:selected="${0 == vo.status}">-选择-</option>
                            <option value="1" th:selected="${vo.status == 1}">停用</option>
                            <option value="2" th:selected="${vo.status == 2}">正常</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">跟单等级：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="level" name="level" value="0" lay-search="">
                            <option value="0">-选择-</option>
                            <zmn th:each="level:${levelList}">
                                <option th:title="${level.value}" th:value="${level.key}"  th:selected="${vo.level == level.key}" th:text="${level.value}"></option>
                            </zmn>
                        </select>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <div class="zmn-form-item">
        <div class="item-inline">
            <label class="inline-label">发起角色：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="trackOperator" name="trackOperator" value="0" lay-search="">
                            <option value="0">-选择-</option>
                            <zmn th:each="trackOperator:${trackOperatorList}">
                                <option th:title="${trackOperator.value}" th:value="${trackOperator.key}"  th:selected="${vo.trackOperator == trackOperator.key}" th:text="${trackOperator.value}"></option>
                            </zmn>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">是否遗留：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="legacy" name="legacy" value="0" lay-search="">
                            <option value="0">-选择-</option>
                            <zmn th:each="legacy:${legacyList}">
                                <option th:title="${legacy.value}" th:value="${legacy.key}"  th:selected="${vo.legacy == legacy.key}" th:text="${legacy.value}"></option>
                            </zmn>
                        </select>
                    </div>
                </div>
            </div>
        </div>


        <div class="item-inline">
            <label class="inline-label">跟单内容：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <!--默认情况下标签box-input-inline占满整个inline-box-cc标签-->
                    <div class="box-input-inline">
                        <input type="text" name="trackContentOrId" th:value="${vo.trackContentOrId}" placeholder="请输入ID/名称" autocomplete="off" class="layui-input"
                               maxlength="45"/>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-inline">
            <label class="inline-label">跟单类型：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="categId" name="categId" value="0" lay-search="">
                            <option value="0">-选择-</option>
                            <zmn th:each="categ:${categList}">
                                <option th:title="${categ.categName}" th:value="${categ.categId}"  th:selected="${vo.categId == categ.categId}" th:text="${categ.categName}"></option>
                            </zmn>
                        </select>
                    </div>
                </div>
            </div>
        </div>


    </div>


    <div class="zmn-form-item">
        <div class="item-inline">
            <label class="inline-label">系统发起：</label>
            <div class="inline-box">
                <div class="inline-box-cc">
                    <div class="box-input-inline">
                        <select id="operatorSystem" name="operatorSystem" value="0">
                            <option value="0" th:selected="${0 == vo.operatorSystem}">-选择-</option>
                            <option value="1" th:selected="${vo.operatorSystem == 1}">否</option>
                            <option value="2" th:selected="${vo.operatorSystem == 2}">是</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="item-submit">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="zmn-form-submit"><i class="layui-icon">&#xe615;</i> 查询</button>
        </div>

    </div>
</div>